home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 December / Chip_2001-12_cd1.bin / zkuste / tuning / download / xteq / setup.exe / {app} / plugins / XQ Mouse Options.xpl < prev    next >
Text File  |  2001-05-13  |  2KB  |  58 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="6"
  3. "COUNT"="2"
  4. "UIPATH"="Hardware\Mouse\Advanced Options"
  5. "NAME"="Mouse Options"
  6. "VERSION"="3.03"
  7. "OSVERSION"="10101"
  8. "LANGUAGE"="VBScript"
  9. "TEXT 1"="Move mouse pointer to default button"
  10. "TEXT 2"="Swap mouse buttons"
  11. "DESCRIPTION 1"="If the first option is activated, the mouse pointer is automatically moved to the default button in dialogs (that is, the button with the black border)."
  12. "DESCRIPTION 2"="If the second option is activated, the mouse buttons are changed, so if it's activated, the left buttons becoms the right button and vica versa." 
  13. "AUTHOR"="Xteq Systems"
  14. "CONTACTURL"="http://www.xteq.com"
  15. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  16. "COMMENT 1"=" "
  17. "COMMENT 2"="Thanks to Shelley Hebert <sdh7@ra.msstate.edu> for "this won't work in Windows 95"."
  18.  
  19.  
  20. sP="HKCU\Control Panel\Mouse\"
  21. v2="SnapToDefaultButton" 'String
  22. v3="SwapMouseButtons" 'String
  23.  
  24.  
  25. Sub Plugin_Initialize 
  26.     i=RegReadValue(sp & v2)
  27.     if i=1 then SetUIElement 1,true
  28.  
  29.     i=RegReadValue(sp & v3)
  30.     if i=1 then SetUIElement 2,true
  31. End Sub
  32.  
  33. Sub Plugin_CheckData(ElementIndex)
  34. End Sub
  35.  
  36. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  37.  b=GetUIElement(1)
  38.  if b=true then
  39.     Call RegWriteValue(sp & v2,1,1)
  40.  else
  41.     Call RegWriteValue(sp & v2,0,1)
  42.  end if
  43.  
  44.  b=GetUIElement(2)
  45.  if b=true then
  46.     Call RegWriteValue(sp & v3,1,1)
  47.  else
  48.     Call RegWriteValue(sp & v3,0,1)
  49.  end if
  50.  
  51.  
  52.  Call Logoff()
  53. End Sub
  54.  
  55.  
  56. Sub Plugin_Terminate 
  57. End Sub
  58.